package com.zmn.oms.model.entity.work.list;

import com.zmn.common.dictionary.GlobalDict;
import com.zmn.oms.common.constant.OrderConsts;
import com.zmn.oms.model.entity.work.OrderBaseEsQuery;
import com.zmn.oms.model.entity.work.OrderWorkDiscountQuery;
import com.zmn.oms.model.entity.work.OrderWorkOperateQuery;
import com.zmn.oms.model.entity.work.OrderWorkQuery;
import com.zmn.oms.model.es.ZmnEsFieldType;
import com.zmn.oms.model.es.ZmnToEs;
import com.zmn.pay.common.constant.PayConsts;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 类描述： 查询会员工单
 *
 * @author lujia
 * @date 2018/11/23 20:01
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OrderWorkMemberQuery extends OrderWorkQuery {

    /**
     *  tab 类型
     */
    private Integer tabType;


    /**
     * 会员工单 (普通单，会员单)
     */
    @ZmnToEs(map = "isMember", type = ZmnEsFieldType.Boolean)
    private Integer member;

    /**
     * 会员权益类型
     */
    @ZmnToEs(map = "memberOrder.equityType", type = ZmnEsFieldType.Integer)
    private Integer equityType;

    /**
     * 会员Id
     */
    @ZmnToEs(map = "memberOrder.memberId", type = ZmnEsFieldType.Integer)
    private Integer memberId;

    /**
     * 工程师审核时间
     */
    @ZmnToEs(map = "memberOrder.masterReviewTime", type = ZmnEsFieldType.Date)
    private String masterReviewTime;

    /**
     * 平台审核时间
     */
    @ZmnToEs(map = "memberOrder.platReviewTime", type = ZmnEsFieldType.Date)
    private String platReviewTime;

    /**
     * 审核状态
     */
    @ZmnToEs(map = "memberOrder.reviewStatus", type = ZmnEsFieldType.Arr)
    private List<Integer> reviewStatusList;

    /**
     * 审核状态
     */
    @ZmnToEs(map = "memberOrder.reviewResultStatus", type = ZmnEsFieldType.Arr)
    private List<Integer> reviewResultStatusList;

    /**
     * 订单类型
     */
    @ZmnToEs(map = "sourceType", type = ZmnEsFieldType.Integer)
    private Integer sourceType = OrderConsts.ORDER_SOURCE_TYPE_MEMBER;

}
